package com.itheima.tcp.demo3;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ServerDemo {
    public static void main(String[] args) throws IOException {
        ServerSocket  ss=new ServerSocket(10000);
        while(true){
            Socket accept = ss.accept();
            SocketThread st=new SocketThread(accept);
            //Thread t=new Thread(st);
            ExecutorService executorService = Executors.newFixedThreadPool(2);
            executorService.submit(st);


        }






    }
}
